package com.example.spi;

import org.apache.dubbo.common.URL;
import org.apache.dubbo.common.extension.ExtensionLoader;

import java.util.HashMap;

public class TestDubboSpi {
    public static void main(String[] args){
        ExtensionLoader<StudentService> extensionLoader = ExtensionLoader.getExtensionLoader(StudentService.class);

        StudentService studentService = extensionLoader.getExtension("studentService");
        HashMap<String, String> map = new HashMap<>();
        map.put("person", "person1");
        URL url = new URL("","",0,map);

        studentService.sayHello(url);
    }
}
